import request from '@/utils/request'

export function listActivity(query) {
  return request({
    url: '/api/adminBiz/adminActivities/list',
    method: 'post',
    data: query
  })
}

export function addActivity(data) {
  return request({
    url: '/api/adminBiz/adminActivities/add',
    method: 'post',
    data: data
  })
}

export function closeActivity(data) {
  return request({
    url: '/api/adminBiz/adminActivities/close',
    method: 'post',
    data: data
  })
}

export function listJoin(query) {
  return request({
    url: '/api/adminBiz/activity/join/list',
    method: 'post',
    data: query
  })
}

export function updateActivity(query) {
  return request({
    url: '/api/adminBiz/adminActivities/update',
    method: 'post',
    data: query
  })
}

export function deleteActivity(query) {
  return request({
    url: '/api/adminBiz/adminActivities/delete',
    method: 'post',
    data: query
  })
}
